from flask.blueprints import Blueprint
from toutiaoapi.flaskrestful import BaseApi

home_blueprint=Blueprint('home',__name__,url_prefix='/app/v1_0')

#视图函数要导回来，否则访问不到
from . import views

from flask_restful import Api
home_api = BaseApi(home_blueprint)
home_api.add_resource(views.IndexResource,'/index')

#获取所有频道
home_api.add_resource(views.AllChannelResource,'/channels')

# 用户关注频道
home_api.add_resource(views.UserChannelResource,'/user/channels')




